import matplotlib.pyplot as plt
data = {'Apple':26,'Mango':17,"Pineapple":21,'Banana':29,'Strawberry':11}
# 定义相应的颜色
colors = ['orange','lightgreen','lightblue','gold','cyan']
# 定义凸出显示的某部分
explode = (0,0.2,0,0,0)
# 绘制饼图
plt.pie(list(data.values()),explode=explode,labels=data.keys(),colors=colors,
        autopct='%1.1f%%',shadow=False,startangle=90)
# 设置饼图的宽高比
plt.axis('equal')
plt.show()